<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Register page</title>
</head>
<body>
<jsp:include page="../common/bar.jsp"></jsp:include>
	
<div align="center">
<form action="update" method="post" enctype="multipart/form-data">
		<table width="64%" align="center" border="0" cellpadding="4"
			cellspacing="1" bgcolor="#CBD8AC" style="margin-bottom: 8px">
			<tr bgcolor="#EEF4EA">
				<td colspan="3" class='title' align="center"><span>Update</span></td>
			</tr>
			<tr align='center' bgcolor="#FFFFFF"
				onMouseMove="javascript:this.bgColor='red';"
				onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
				<td width="25%" bgcolor="#FFFFFF" align="right">Username：</td>
				<td width="2%" bgcolor="#FFFFFF" align="left"><input text="text" value="${m.name}" name="name" disabled="disabled"/> </td>
			</tr>
			<tr align='center' bgcolor="#FFFFFF"
				onMouseMove="javascript:this.bgColor='red';"
				onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
				<td width="25%" bgcolor="#FFFFFF" align="right">Old Password：</td>
				<td width="75%" bgcolor="#FFFFFF" align="left"><input
					type="password" name="oldpwd" placeholder="login password" size="20" required /></td>
			</tr>
			<tr align='center' bgcolor="#FFFFFF"
				onMouseMove="javascript:this.bgColor='red';"
				onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
				<td width="25%" bgcolor="#FFFFFF" align="right">New Password：</td>
				<td width="75%" bgcolor="#FFFFFF" align="left"><input
					type="password" name="newpwd1" placeholder="new password" size="20" required /></td>
			</tr>
			<tr align='center' bgcolor="#FFFFFF"
				onMouseMove="javascript:this.bgColor='red';"
				onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
				<td width="25%" bgcolor="#FFFFFF" align="right">Confirm Password：</td>
				<td width="75%" bgcolor="#FFFFFF" align="left"><input
					type="password" name="newpwd2" placeholder="confirm password" size="20" required /></td>
			</tr>
			<tr align='center' bgcolor="#FFFFFF"
				onMouseMove="javascript:this.bgColor='red';"
				onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
				<td width="25%" bgcolor="#FFFFFF" align="right">STORENAME：</td>
				<td width="75%" bgcolor="#FFFFFF" align="left"><input
					type="text" name="storename" placeholder="store name" size="20"  value="${m.storeName}" required/></td>
			</tr>
			<tr align='center' bgcolor="#FFFFFF"
				onMouseMove="javascript:this.bgColor='red';"
				onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
				<td width="25%" bgcolor="#FFFFFF" align="right">IDCARD：</td>
				<td width="75%" bgcolor="#FFFFFF" align="left"><input
					type="file" name="idcard" id="idcard" size="30" readonly="readonly" required /></td>
			</tr>
				<tr align='center' bgcolor="#FFFFFF"
				onMouseMove="javascript:this.bgColor='red';"
				onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
				<td width="25%" bgcolor="#FFFFFF" align="right">IMAGER：</td>
				<td width="75%" bgcolor="#FFFFFF" align="left"><input
					type="file"name="img" id="img" size="30" readonly="readonly" required /></td>
			</tr>
			<tr align='center' bgcolor="#FFFFFF"
				onMouseMove="javascript:this.bgColor='red';"
				onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
				<td width="25%" bgcolor="#FFFFFF" align="right">ADDRESS：</td>
				<td width="75%" bgcolor="#FFFFFF" align="left"><input
					type="text"name="addr" placeholder="store address" size="20" value="${m.address}" required/></td>
			</tr>
			<tr align='center' bgcolor="#FFFFFF"
				onMouseMove="javascript:this.bgColor='red';"
				onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
				<td width="36%" bgcolor="#FFFFFF" align="right">&nbsp;</td>
				<td width="64%" bgcolor="#FFFFFF" align="left"><input
					type="submit" value="Submit" style="width: 80px; height: 30px" />&nbsp;&nbsp;&nbsp;
					<input type="button" value="Back" style="width: 80px; height: 30px"
					onclick="javascript:history.back(-2)" />&nbsp;${err_msg}</td>
			</tr>
		</table>
	</form>
	</div>
</body>
</html>